<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link type="text/css" href="common/common.css" rel="stylesheet">
<script type="text/javascript" src="common/sortabletable.js"></script>
<script type="text/javascript" src="common/common.js"></script>
</head>
<body>
<div id="rightlayout" style="width: 600px">
<input name="add" type="button" class="button" value="添加" 
	onClick="redirect('<c:url value="UserAccountMainAction.do?method=displayUserAccountCreateScreen"/>')">

<input name="export" type="button" class="button" value="导出" onClick="redirect('<c:url value="UserAccountMainAction.do?method=exportUserAccountsToExcel"/>')">
<table width="100%" class="sort-table" id="userlist" align="right">
	<thead>
		<tr>
			<td>用户名</td>
			<td>昵称</td>
			<td>角色</td>
			<td>创建时间</td>
			<td>操作</td>
		</tr>
	</thead>
	<tbody>
		<c:forEach var='vo' items="${USER_ACCOUNT_LIST}">
			<tr>
				<td>${vo.userID}</td>
				<td>${vo.userName}</td>
				<td>${vo.roleDisplayName}</td>
				<td><fmt:formatDate value="${vo.createDate}" pattern="yy-MM-dd HH:mm" /></td>
				<td><img src="images/edit.gif" title="编 辑" class="btnImg"
					onclick="javascript:confirmClick('编辑账号:${vo.userID}','<c:url value="UserAccountMainAction.do?method=displayUserAccountUpdateScreen&userID=${vo.userID}"/>')" />
				<img src="images/delete.gif" title="删 除" class="btnImg"
					onclick="javascript:confirmClick('是否删除账号:${vo.userID}','<c:url value="UserAccountMainAction.do?method=deleteUserAccount&userID=${vo.userID}"/>')" /></td>

			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="5"></td>
		</tr>
	</tfoot>
</table>
<script type="text/javascript">
	var st = new SortableTable( document.getElementById("userlist"), ["String", "String", "String","Date" ,"None"],'#E4EEF7','white','#FF9900');
</script></div>
</body>
</html>
